<?php
session_start();
echo session_name();
echo session_id();
setcookie(session_name(),  session_id(),time()+3600);

/////////必须要掌握的知识
//setcookie();//设置cookie
//$_COOKIE;//读取cookie
//setcookie($name,"",1)//删除cookie

//session_start();//开启session
//$_SESSION[""]="adaaaaa";//设置session
//$_SESSION;//读取session
//unset($_SESSION[""])//删除单个session
//session_unset()//删除整个session，不删内存
//session_destroy();//删除session   直接删内存






?>
